<?php
// Google Map API key for www.planner.reeft.dk
$host = mb_strtolower($_SERVER['HTTP_HOST'], "UTF-8");
$ourhost = "reeft_gps.reeft.com";
if(substr_compare($host, $ourhost, mb_strlen($host, "UTF-8")-mb_strlen($ourhost, "UTF-8"), mb_strlen($ourhost, "UTF-8")) === 0) {
$apikey = 'AIzaSyAQjuzyZnnJW3I-sWWi-kVZtPpBPaIaorI'; // Production
$apikeyIP = 'AIzaSyAEI4lD-h6ctCQfQQqewYzj0T6laQCTLh8'; // Production (restricted to IP 91.197.249.49)
}
else {
$apikey = 'AIzaSyArBbFSUNM5bUYu2YtzFoGJdLkXUSdCSB4'; // Developement
$apikeyIP = 'AIzaSyArBbFSUNM5bUYu2YtzFoGJdLkXUSdCSB4'; // Developement
}
$isTest = 'N';
$gsmUrl = 'https://login.gps-tracker.dk/api';
$gsmKey = '$2y$10$SC.XMMJovzAiHijfPf/0F.AAatv6EBPw.4S0DbyQCUHNErB7qfd4q';
$dataforsyningenUrl = 'https://api.dataforsyningen.dk';
$rftUrl_live = 'https://bffweb.reeft.com/api'; // live url
//api's not moved to bffweb yet
$rftUrlCustomer_live = 'https://customer.reeft.com/api';
$rftUrlOrganization_live = 'https://organization.reeft.com/api';
$rftUrl_test = 'https://staging-bffweb.reeft.com/api'; // staging url
//api's not moved to bffweb yet
$rftUrlCustomer_test = 'https://staging-customer.reeft.com/api';
$rftUrlOrganization_test = 'https://staging-organization.reeft.com/api';
if ($isTest == 'Y') {
$rftUrl = $rftUrl_test;
$rftUrlCustomer = $rftUrlCustomer_test;
$rftUrlOrganization = $rftUrlOrganization_test;
} else {
$rftUrl = $rftUrl_live;
$rftUrlCustomer = $rftUrlCustomer_live;
$rftUrlOrganization = $rftUrlOrganization_live;
}
//if staging or test we have to ensure we uses right url
if (isset($_SESSION['origin']) ) {
if ($_SESSION['origin'] == 'staging') {
$rftUrl = 'https://staging-bffweb.reeft.com/api'; // staging url
$rftUrlCustomer = 'https://staging-customer.reeft.com/api';
$rftUrlOrganization = 'https://staging-organization.reeft.com/api';
} else if ($_SESSION['origin'] == 'azdev') {
$rftUrl = 'https://azdev-bffweb.reeft.com/api'; // azdev url
$rftUrlCustomer = 'https://azdev-customer.reeft.com/api';
$rftUrlOrganization = 'https://azdev-organization.reeft.com/api';
} else if ($_SESSION['origin'] == 'aztest') {
$rftUrl = 'https://aztest-bffweb.reeft.com/api'; // aztest url
$rftUrlCustomer = 'https://aztest-customer.reeft.com/api';
$rftUrlOrganization = 'https://aztest-organization.reeft.com/api';
}
}
?>